put FilePath("STAK", "Which stack do YOU like?") into chosenOne
if chosenOne = the value of word 2 of the long name of this stack then
answer "Good choice! I would have picked that one too!"
else
answer "Sorry, wrong answer! Try again."
end if
end mouseUp
-- part contents for background part 20
----- text -----
FilePath displays a modified Standard File dialog, centered on the HyperCard window, to let the user choose a file. It returns the full path name of the choosen file, or empty if the CANCEL button is choosen.
In addition to the standard Eject, Drive, Select, and Cancel buttons, the XFCN displays the amount of free space on a volume. Additionally you may supply a prompt string (in parameter two) which will be placed below the file list.
PROMPTSTRING: a text string which will be displayed at the bottom of the dialog.
As with all of our XCMDs and XFCNs, passing a single question mark (FilePath("?") in this case) returns the syntax for the external. Passing an exclamation mark (FilePath("!")) returns the copyright information.
-- part contents for background part 38
----- text -----
18/50
-- part contents for background part 42
----- text -----
{ FileName() XFCN source listing}
{ This is an XFCN that brings up a custom standard file dialog to allow the user to select a filename. It }
{ places an optional string below the file list, and comes up centered in HC's window, regardless of }
{ which monitor it is on. }
{}
{ Written by: Anup Murarka Eric Carlson }
{ ALINK: SKEPTIC ALINK: cyNic }
{ CIS: 76004,3356 }
{}
{ We are part of the Support Tools Development Group, }
{ Apple Computer, Inc. }
{}
{ please DO NOT contack Mac DTS for support of this code! }
{}
{ please DO contact the authors for support of this code! }
{}
{ Send comments, bug reports, requests to any of the above }
{ E-mail addresses or to:}
{}
{ (one of us) }
{ Apple Computer, Inc. }
{ 900 E. Hamilton, Ave. }
{ Campbell, CA 95008 }
{ M/S 72-L }
{}
{ Copyright: © 1989, 1990 by Apple Computer, Inc., all rights reserved. }